import csv

def write(path, righe):
    f=open(path, "wb")
    db=csv.writer(f)
    db.writerows(righe)
    f.close()
    
def read(path):
    db=[]
    f=open(path, "rb")
    read=csv.reader(f)
    for riga in read:
        db.append(riga)
    f.close()
    return db